import request from '@/utils/request'


// 用户头像上传
export function uploadAvatar(data) {
    return request({
        url: '/system/user/profile/avatar',
        method: 'post',
        data: data
    })
}

/**
 * 用户提交认证
 * @param authType
 * @param data
 * @returns {Promise<AxiosResponse<any>>}
 */
export function submitAuth(authType,data) {
    return request({
        url: '/api/user/auth/submit/' + authType,
        method: 'post',
        data: data
    })
}

/**
 * 获取近一次提交的认证信息
 * @param authType
 * @returns {Promise<AxiosResponse<any>>}
 */
export function getAuthInfo(authType) {
    return request({
        url: '/api/user/auth/getAuthInfo/' + authType,
        method: 'get',
    })
}

